const app = require('./compose.js')

async function middle1 (nextFn) {
  console.log(1);
  await nextFn();
  console.log(2);
}

app.use(async next => {
  console.log(1)
  await next()
  console.log(2)
})

app.use(async next => {
  console.log(3)
  await next()
  console.log(4)
})

app.use(async next => {
  console.log(5)
  await next()
  console.log(6)
})

app.compose()